<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增师傅订单消息id')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-serviceOrderMessage-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">消息标题：</label>
                <div class="col-sm-8">
                    <input name="messageTitle" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">消息内容：</label>
                <div class="col-sm-8">
                    <textarea name="messageContent" class="form-control"></textarea>
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">分类 1系统消息 2配件消息 3费用消息 4交易消息：</label>
                <div class="col-sm-8">
                    <select name="messageType" class="form-control m-b" th:with="type=${@dict.getType('repair_message_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>-->
            <!--<div class="form-group">
                <label class="col-sm-3 control-label">师傅id(type=2,3,4的时候)：</label>
                <div class="col-sm-8">
                    <input name="userId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单id：</label>
                <div class="col-sm-8">
                    <input name="orderId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">关联id 配件，费用等：</label>
                <div class="col-sm-8">
                    <input name="relationId" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否已读 0未读 1已读：</label>
                <div class="col-sm-8">
                    <select name="isRead" class="form-control m-b" th:with="type=${@dict.getType('is_read')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统消息，已读师傅id。用逗号分隔：</label>
                <div class="col-sm-8">
                    <input name="readUserId" class="form-control" type="text">
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "zsyh/serviceOrderMessage"
        $("#form-serviceOrderMessage-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-serviceOrderMessage-add').serialize());
            }
        }
    </script>
</body>
</html>